]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionDownloader: Exclude extensions with pending updates from check
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 27 Jan 2020 00:13:49 +0000 (01:13 +0100)
committerverdre <jonas@dressler.it>
Thu, 30 Jan 2020 13:37:47 +0000 (13:37 +0000)
While it is possible that an extension has a newer version available
than the previously downloaded update, it's more likely that we end up
downloading the same archive again. That would be a bit silly despite
the usually small size, so we can either use the metadata from the
update, or exclude the extension from the check.

The latter is much easier, so let's go with that for now.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/945

js/ui/extensionDownloader.js

index 25145564d7ddfa6144118d5175bfa2b842f88541..c09359eab80c2b1cd37040620328e537af37c214 100644 (file)
@@ -123,6 +123,8 @@ function checkForUpdates() {
         let extension = Main.extensionManager.lookup(uuid);
         if (extension.type !== ExtensionUtils.ExtensionType.PER_USER)
             return;
+        if (extension.hasUpdate)
+            return;
         metadatas[uuid] = extension.metadata;
     });